import httpUtil from '../httpUtil'
import util from '@/assets/js/util'

// 获取验证码
export function getLoginCaptcha (params: any) {
  return httpUtil.getAction('/api/login/captchaImage' + util.jsonToString(params))
}

// 登录
export function login (params: any) {
  return httpUtil.postAction('/api/login/login', params)
}

// 登出
export function logout (params: any) {
  return httpUtil.postAction('/api/login/logout', params)
}

// 注册
export function register (params: any) {
  return httpUtil.postAction('/api/login/registry', params)
}


